package com.qersoft.service;

import com.qersoft.entity.User;
import com.qersoft.repository.UserRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
    private UserRepository userRepository;

    // 获取所有学生信息
    public Iterable<User> getAllStudents() {
        return userRepository.findAll();
    }
}